import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl"

const JKTURL = BASEURL.JKTURL
const coachApi = {
    /**教练标签 */
    querytype() {
        let url = JKTURL + '/coach/label'
        return myaxios.get(url)
    },


    /**教练列表查询 */
    queryall(params) {
        let url = JKTURL + '/coach/list'
        return myaxios.get(url, params)
    },
    /**教练模糊 */
    queryByNameLike(params) {
        let url = JKTURL + '/coach/ByName'
        return myaxios.get(url, params)
    },
    add(params) {
        let url = JKTURL + '/coach/add'
        return myaxios.post(url, params)
    },
    update(params) {
        let url = JKTURL + '/coach/update'
        return myaxios.post(url, params)
    },
    del(params) {
        let url = JKTURL + '/coach/del'
        return myaxios.get(url, params)
    },
    queryById(params) {
        let url = JKTURL + '/coach/ById'
        return myaxios.get(url, params)
    },




}
export default coachApi;